package com.darren.center.design.patterns.command;

/**
 * <h3>design-patterns</h3>
 * <p></p>
 *
 * @author : Darren
 * @date : 2021年06月14日 20:02:10
 **/
public abstract class AbstractAction implements Action{

    public AbstractAction(String serviceCode, ActionMapper actionMapper) {
        super();
        if (serviceCode == null) {
            throw new IllegalArgumentException("no path for " + this.getClass());
        }
        if (actionMapper != null) {
            actionMapper.addAction(serviceCode, this);
        }
    }

}

